<?php

namespace  Xrfg\Api\Consume\Resources;

use App\Http\Resources\Resource;

class ConsumeAccountLogResource extends Resource
{
    /**
     * Transform the resource collection into an array.
     *
     * @param \Illuminate\Http\Request $request
     *
     * @return array
     */
    public function toArray($request)
    {
        return [
            'number' => -$this->number,
            'time' => $this->time,
            'name' => "收益",
            'message' => "成功",
        ];
    }
}
